package net.kaaass.zerotierfix.events;

import com.zerotier.sdk.VirtualNetworkConfig;

import net.kaaass.zerotierfix.model.Network;

/**
 * 更新网络配置的结果事件
 */
public class NetworkReconfigureEvent {
    private final boolean changed;

    public boolean isChanged() {
        return changed;
    }

    public Network getNetwork() {
        return network;
    }

    public VirtualNetworkConfig getVirtualNetworkConfig() {
        return virtualNetworkConfig;
    }

    public NetworkReconfigureEvent(boolean changed, Network network, VirtualNetworkConfig virtualNetworkConfig) {
        this.changed = changed;
        this.network = network;
        this.virtualNetworkConfig = virtualNetworkConfig;
    }

    private final Network network;
    private final VirtualNetworkConfig virtualNetworkConfig;
}
